<%@ page import="com.ld.manageBook.bean.Books" %>
<%@ page import="com.ld.manageBook.service.BookService" %>
<%@ page import="com.ld.manageBook.service.impl.BookServiceImpl" %><%--
  Created by IntelliJ IDEA.
  User: 刘邓
  Date: 2023-06-02
  Time: 9:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改书籍</title>
</head>
<body>
<%!
    private BookService bookService = new BookServiceImpl();
%>
<%
    Books book = bookService.getBookById(Integer.parseInt(request.getParameter("id")));
    session.setAttribute("currentBook",book);
%>
<form action="/home/changeBookOutcome.jsp" method="post">
    id:<input name="id" disabled placeholder="<%=book.getId()%>" value="<%=book.getId()%>"><br>
    书名:<input name="name" placeholder="<%=book.getName()%>"><br>
    作者:<input name="author" placeholder="<%=book.getAuthor()%>"><br>
    价格:<input name="price" placeholder="<%=book.getPrice()%>"><br>
    说明:<input name="remarks" placeholder="<%=book.getRemarks()%>"><br>
    存量:<input name="number" placeholder="<%=book.getNumber()%>"><br>
    总量:<input name="allnumber" placeholder="<%=book.getAllnumber()%>"><br>
    <input type="submit" value="提交">
</form>
</body>
</html>
